package com.yzjs.sms;



import com.esms.common.entity.GsmsResponse;
import com.yzjs.sms.entity.SmsInfo;
import com.yzjs.sms.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.DigestUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;


/**
 * ${comments}
 *
 * @author yuqiumin
 * @email sunlightcs@gmail.com
 * @date 2020-06-22 10:19:40
 */
@RestController
@RequestMapping("sms")
public class ChutianyunUMPController {

    @Resource
    private SmsService smsService ;

    @RequestMapping("/doSendSms")
    public GsmsResponse doSendSms(@RequestBody SmsInfo smsInfo , HttpServletRequest request )throws Exception {
        GsmsResponse response = smsService.doSendSms(smsInfo.getPhone(),smsInfo.getContent());
        return  response ;
    }











}
